package com.payment.ktb.Fragment;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
import com.payment.ktb.utils.ProgressDialogUtils;

/**
 * Created by syd on 2016/6/2.
 */
public class BaseFragment extends Fragment {

    public ProgressDialogUtils progressDialogUtils;
    public Context mContext;
    public RequestQueue mQueue;


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mContext = getActivity();
        mQueue = Volley.newRequestQueue(mContext);
        progressDialogUtils = new ProgressDialogUtils(mContext);
    }

    /**
     *
     * @param clazz
     */
    public void startActivity(Class clazz) {
        Intent intent = new Intent(getActivity(),clazz);
        startActivity(intent);
    }


}
